package com.lpwa.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.lpwa.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 标签报警历史表 tag_alarm_data
 * 
 * @author tanmu
 * @date 2019-06-22
 */
public class TagAlarmData extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** ID */
	private Long id;
	/** 标签ID */
	private String tagId;
	/** 报警产生时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date alarmTS;
	/** 报警类型 */
	private String alarmType;
	/** X */
	private BigDecimal x;
	/** Y */
	private BigDecimal y;
	/** Z */
	private BigDecimal z;
	/** 处理状态（0未处理 1已处理） */
	private Integer status;
	/** 处理意见 */
	private String context;
	private String personName;
	private Integer count;

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setTagId(String tagId) 
	{
		this.tagId = tagId;
	}

	public String getTagId() 
	{
		return tagId;
	}
	public void setAlarmTS(Date alarmTS) 
	{
		this.alarmTS = alarmTS;
	}

	public Date getAlarmTS() 
	{
		return alarmTS;
	}
	public void setAlarmType(String alarmType) 
	{
		this.alarmType = alarmType;
	}

	public String getAlarmType() 
	{
		return alarmType;
	}
	public void setX(BigDecimal x) 
	{
		this.x = x;
	}

	public BigDecimal getX() 
	{
		return x;
	}
	public void setY(BigDecimal y) 
	{
		this.y = y;
	}

	public BigDecimal getY() 
	{
		return y;
	}
	public void setZ(BigDecimal z) 
	{
		this.z = z;
	}

	public BigDecimal getZ() 
	{
		return z;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setContext(String context) 
	{
		this.context = context;
	}

	public String getContext() 
	{
		return context;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tagId", getTagId())
            .append("alarmTS", getAlarmTS())
            .append("alarmType", getAlarmType())
            .append("x", getX())
            .append("y", getY())
            .append("z", getZ())
            .append("status", getStatus())
            .append("context", getContext())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
